<?php
if(!defined('IN_XLR')) {
	exit('Access Denied');
}



ini_set("display_errors", "On");

define('D_BUG', 1); //0不打印日志，1打印日志
define('D_BUG_DB', 0); //0不打印SQL性能日志，1打印SQL性能日志 
define('D_BUG_LOG2DB', 1); //0日志写入文件系统，1日志写入数据库

define('DB_COULD', 0); //0单主服务器，1主从双服务器

define('APIHEADER_APIVERSION', 'Moment-Apiversion');
define('APIHEADER_APPID', 'Moment-Appid');
define('APIHEADER_SIGN', 'Moment-Sign');
define('APIHEADER_REQUESTID', 'Moment-Requestid');
define('APIHEADER_SERVERID', 'Moment-Serverid');
define('APIHEADER_RESPONSEID', 'Moment-Responseid');
 
$_SGLOBAL = array();
$_CONFIG = array();

//APPKEY
$_CONFIG['appkey_map'] = array(
	'1' => '93073320119dae8b65fd44931a08f8e4',
	'1_dev' => '93073320119dae8b65fd44931a08f8e4_dev',
	'2' => '8db04dd1d49753171ffb89e9a9454703',
	'2_dev' => '8db04dd1d49753171ffb89e9a9454703_dev',
	'3' => 'e695bd5dbd09e7325f61685eed624396',
	'3_dev' => 'e695bd5dbd09e7325f61685eed624396_dev',
);

$_CONFIG['server_country'] = 0;

$_CONFIG['serverid'] = 'cn1';
$_CONFIG['serverkey'] =  '42e0c27d60cb0ddefbab61cd6ce58d91';
$_CONFIG['server_sessionkey'] =  'cn1-f04b97845495972281e58dc067f260ad';

  
//主数据库，Mysql配置参数	
//$db = new ezSQL_mysql('root','Ngjj1917','xunlianri','localhost','utf-8');

$_CONFIG['m_dbhost']  = "localhost"; //服务器地址
$_CONFIG['m_dbuser']  = "root"; //用户
$_CONFIG['m_dbpw'] = "Ngjj1917"; //密码
$_CONFIG['m_dbcharset'] = 'utf8'; //字符集
$_CONFIG['m_pconnect'] = 0; //是否持续连接
$_CONFIG['m_dbname']  = "xunlianri"; //数据库
$_CONFIG['m_dbpre'] = ''; //数据库名前缀
$_CONFIG['m_tablepre'] 	= ''; //表名前缀

//页面参数
$_CONFIG['charset'] 		= 'utf-8'; //页面字符集
$_CONFIG['gzipcompress'] 	= 0; //启用gzip

//session_key有效期
$_CONFIG['session_keep_time']	= 3600 * 24 * 7; 

$_CONFIG['alarm_mobile'] = "18601127955";  //告警通知手机号
$_CONFIG['alarm_covertime'] = 300; //间隔告警秒数
 

//云配置
$_CONFIG['bucket_type'] = 'AliyunOSS';//SinaStor新浪普通存储，SinaS3新浪S3服务，AmazonS3亚马逊S3服务，AliyunOSS阿里云OSS服务

//通用验证码
define('API_REG_VERIFYCODE', '62830189');